package com.lepu.app.fun.chat.business.uiflow;

import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;

import com.eyzhs.app.R;


public class UITransition {

    public static void setActivityStartRightIn(FragmentActivity activity) {
        activity.overridePendingTransition(R.anim.lib_push_left_right_in, 0);
    }

    public static void setActivityFinishRightOut(FragmentActivity activity) {
        activity.overridePendingTransition(0, R.anim.lib_push_left_right_out);
    }

    public static void setFragTransRightInRightOut(FragmentTransaction transaction) {
//        transaction.setCustomAnimations(
//                R.anim.lib_push_left_right_in,
//                R.anim.lib_push_left_right_out,
//                R.anim.lib_push_left_right_in,
//                R.anim.lib_push_left_right_out
//        );

    }
    public static void setSingleFragTransRightInRightOut(FragmentTransaction transaction) {
        transaction.setCustomAnimations(
                R.anim.lib_push_left_right_in,
                R.anim.lib_push_left_right_out,
                R.anim.lib_push_left_right_in,
                R.anim.lib_push_left_right_out
        );

    }
}
